<h:panelGroup id="topo" layout="block" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
      <h:form prependId="false">
	      <h:panelGroup id="topo_pricipal" layout="block">
	      	<h:link outcome="/home">
		      	<h:panelGroup style="margin:12px 0 0 20px;height:125px;width:205px;float:left" layout="block">
		        </h:panelGroup>
	        </h:link>
	      	<h:panelGroup layout="block" styleClass="box_usuario_logado" rendered="#{!empty usuarioLogadoBean.form.usuario}">	      		
	      		<h:panelGroup style="margin:30px 0 0 10px;float:left">
	      			<h:panelGroup layout="block" style="display: block;">
	      				<h:outputText value="Bem vindo, " style="font-size:9px" />
	      				<h:outputText value="#{usuarioLogadoBean.primeiroNome}" style="font-size:9px;font-weight:bold" />
	      			</h:panelGroup>

	      			<h:panelGroup layout="block" style="display: block;">
	      				<h:outputText value="Data de acesso: " style="font-size:9px" />
		      			<h:outputText value="#{usuarioLogadoBean.form.usuario.dataAcesso}" style="font-size:9px;font-weight:bold">
		      				<f:convertDateTime pattern="dd/MM/yyyy"/>
		      			</h:outputText>
	      			</h:panelGroup>
	      			
	      			<h:panelGroup layout="block" style="margin-top:5px">
	      				<h:commandLink id="conta" action="#{usuarioLogadoBean.redirecionaAreaAdministrativa}" style="font-size:10px;float:left;color:#4A7F31;font-weight:bold;text-decoration:none">
	      					Minha conta
	      					<p:tooltip for="conta" value="Área administrativa"  
                        				showEffect="slide" hideEffect="slide"  
                        				showEffectLength="500" hideEffectLength="500"/>	      					
	      				</h:commandLink>	      		
	      				<h:commandLink id="sair" value="(Sair)" style="font-size:10px;float:right;color:#4A7F31;font-weight:bold;text-decoration:none" action="#{autenticaUsuarioBean.finalizarSessao}">
	      					<p:tooltip for="sair" value="Sai do sistema"  
                        				showEffect="slide" hideEffect="slide"  
                        				showEffectLength="500" hideEffectLength="500"/>
	      				</h:commandLink>
	      			</h:panelGroup>	      			

	      		</h:panelGroup>
	      	</h:panelGroup>
	      </h:panelGroup>
	      
	      <h:panelGroup id="topo_menu" layout="block">
	      	<h:panelGroup layout="block" style="margin-top:5px;">
	      		<h:link styleClass="fmt_link_topo" outcome="/home">Página inicial</h:link>
	      		<h:link styleClass="fmt_link_topo">Unidades</h:link>
	      		<h:link styleClass="fmt_link_topo">Convênios</h:link>
	      		<h:link styleClass="fmt_link_topo">Área do paciente</h:link>
	      		<h:link styleClass="fmt_link_topo">Fale conosco</h:link>
	      		<h:link styleClass="fmt_link_topo">Como chegar</h:link>
	      	</h:panelGroup>
	      </h:panelGroup>
	  </h:form>	
</h:panelGroup>